package com.momo.todo.model;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/10/24.
 */

public class PlanModel implements Serializable{

    public static final int PLAN_TYPE_STUDY = 0;
    public static final int PLAN_TYPE_LIFE = 1;
    public static final int PLAN_TYPE_OTHER = 2;

    private int id;//计划id
    private int type;//计划类型
    private String content;//计划内容
    private boolean isTop;//是否置顶
    private long time;

    public PlanModel(){}

    public PlanModel(int type, String content) {
        this.type = type;
        this.content = content;

        isTop = false;
        id=0;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setTop(boolean top) {
        isTop = top;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getId() {

        return id;
    }

    public int getType() {
        return type;
    }

    public String getContent() {
        return content;
    }

    public boolean isTop() {
        return isTop;
    }

    public long getTime() {
        return time;
    }

    @Override
    public String toString() {
        return "PlanModel{" +
                "id=" + id +
                ", type=" + type +
                ", content='" + content + '\'' +
                ", isTop=" + isTop +
                ", time=" + time +
                '}';
    }
}
